from model import Model


class Comment(Model):
    def __init__(self, _dict):
        """Arguments:
            _dict
        """
        Model.__init__(self, _dict)
        
        self.body = _dict['body']
        
        # Associated field
        self.author = _dict['author']
        self.source = _dict['source']
        self.mode = _dict['mode'] # 0: comment 1: reply
        self.created = _dict['created']

    def __repr__(self):
        return '<Post %r>' % (self.body)

if __name__ == '__main__':
    # create table
    pass